

import java.util.Calendar;
import java.util.GregorianCalendar;


public class Evento {

	private String gru;
	private GregorianCalendar dat;
	private String luo;
	private String eve;

	public Evento (String gr, GregorianCalendar da, String lu, String no) {
		gru = gr;
		dat = da;
		luo = lu;
		eve = no;		
	}

	public String getGru() {
		return gru;
	}

	public void setGru(String gru) {
		this.gru = gru;
	}

	public GregorianCalendar getDat() {
		return dat;
	}

	public void setDat(GregorianCalendar dat) {
		this.dat = dat;
	}

	public String getLuo() {
		return luo;
	}

	public void setLuo(String luo) {
		this.luo = luo;
	}

	public String getEve() {
		return eve;
	}

	public void setEve(String eve) {
		this.eve = eve;
	}
	
	public String getDateStr()
	{
		return dat.get(Calendar.DAY_OF_MONTH) + " - " + (dat.get(Calendar.MONTH)+1) + " - " + dat.get(Calendar.YEAR);
	}

	public String getHourStr()
	{
		return String.format("%02d:%02d", dat.get(Calendar.HOUR_OF_DAY),dat.get(Calendar.MINUTE));
	}

	public String toString(){
		
		String s = "";
		
		s = gru + ":\t";
		s += getDateStr();
		s += "\t";		
		s += getHourStr();
		s += "\t" + eve + ", " + luo;	
		
		
		return s;
		
	}

}
